# -*- coding: utf-8 -*-
# @Time    : 2022/7/16 15:49
# @Author  : catherine
# @Email   : catherine_csq@163.com
# @File    : edit_customer_page.py
# @Software: PyCharm
from selenium.webdriver.common.by import By
from pages.base_page import BasePage

class EditCustomerPage(BasePage):
    '''编辑客户信息页面类'''
    url='http://192.168.189.1:8081/crm/index.php?m=customer&a=edit&id=18'
    #定位器
    rating2_locator = (By.ID, 'rating2')
    save_edit_locator = (By.NAME, 'submit')

    def click_rating2(self):
        '''选择客户评分三星'''
        self.find_element(self.rating2_locator).click()

    def click_save_edit(self):
        '''保存编辑客户信息'''
        self.find_element(self.save_edit_locator).click()



